#define _CRT_SECURE_NO_WARNINGS

#include "queue.h"

void test()
{
	Que q;
	QInit(&q);

	QPush(&q, 1);
	printf("%d %d %d\n", q.size, QBack(&q), QFront(&q));

	QPush(&q, 2);
	printf("%d %d %d\n", q.size, QBack(&q), QFront(&q));

	QPush(&q, 3);
	printf("%d %d %d\n", q.size, QBack(&q), QFront(&q));

	QPush(&q, 4);
	printf("%d %d %d\n", q.size, QBack(&q), QFront(&q));

	QPush(&q, 5);
	printf("%d %d %d\n", q.size, QBack(&q), QFront(&q));

	printf("%d\n", QSize(&q));

	while (!QEmpty(&q))
	{
		printf("%d ", QFront(&q));
		QPop(&q);
	}
	printf("\n");
	printf("%d\n", q.size);

	QDestroy(&q);
}

int main()
{
	test();

	return 0;
}